package com.hanamaki.oop.demo02;

import java.util.Scanner;

public class Tourist_main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入姓名：");
        String name = scanner.next();
        /* 使用键盘扫描对象 */
        System.out.print("请输入年龄：");
        int age = scanner.nextInt();
        /* 初始化游人类 */
        Tourist tourist = new Tourist(name, age);
        System.out.println(tourist.toString());


    }
}
